package com.ce.controller;


import com.ce.entity.Storage;
import com.ce.entity.Warehouse;
import com.ce.service.StorageService;
import com.ce.service.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 仓库表
 前端控制器
 * </p>
 *
 * @author jyt
 * @since 2022-03-21
 */
@RestController
@RequestMapping("/warehouse")
public class WarehouseController {
    @Autowired
    WarehouseService service;

    /**
     * 查询仓库列表信息
     */
    @GetMapping("/getWarehouseList")
    public List<Warehouse> testSelect() {
        List<Warehouse> warehouseList = service.getList();
        return warehouseList;
    }

}
